 
-----------------------------
Generating Binomial N samples
p =  0.5 N =  100
Number of Samples =  2500000
  
  Generating Binomial Distribution samples.
  Date and time plus nanoseconds
Thu Jun 19 16:15:21 EDT 2014
452271335
  
[1] 0.5
[1] 100
[1] "Absolute difference of empirical moments from theoretical ones:"
[1]   -0.0007360   -0.0858208   -7.5223312 -587.6974432
[1] "Relative difference of empirical moments from theoretical ones:"
[1] -1.472000e-05 -3.398844e-05 -5.842587e-05 -8.868412e-05
[1] "Absolute difference of empirical central moments from theoretical ones:"
[1]  3.400601e-15 -1.222134e-02 -1.140382e-01 -2.543620e+00
[1] "Relative difference of empirical central moments from theoretical ones (except first):"
[1] -4.840135e-06 -8.857335e-07 -3.838348e-07
                         test   P.value KS.test
1                  Chi Square 0.7764400  Passed
2            Likelihood Ratio 0.7764400  Passed
3               Freeman-Tukey 0.5194646  Passed
4 Power Divergence (lambda=2) 0.5268402  Passed
 
-----------------------------
Taking first  1000000 samples
p =  0.5 N =  100
 
[1] 0.5
[1] 100
[1] "Absolute difference of empirical moments from theoretical ones:"
[1]    -0.004613    -0.505917   -41.805833 -3088.230285
[1] "Relative difference of empirical moments from theoretical ones:"
[1] -0.0000922600 -0.0002003632 -0.0003247055 -0.0004660170
[1] "Absolute difference of empirical central moments from theoretical ones:"
[1] -9.099494e-16 -4.463828e-02 -1.704257e-01 -9.325016e+00

	One-sample Kolmogorov-Smirnov test

data:  bin.unif
D = 0.0004, p-value = 0.1669
alternative hypothesis: two-sided

